package cn.smbms.mapper.provider;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import cn.smbms.pojo.Provider;
@Repository
public interface ProviderMapper {
	
	/**
	 * 增加供应�?
	 *
	 * @param provider
	 * @return
	 * @throws Exception
	 */
	public int add(Provider provider);


	/**
	 * 通过供应商名称�?编码获取供应商列�?模糊查询-providerList
	 * 
	 * @param proName
	 * @return
	 * @throws Exception
	 */
	public List<Provider> getProviderList(@Param("proName") String proName,@Param("proCode") String proCode);
	
	/**
	 * 通过proId删除Provider
	 * @param delId
	 * @return
	 * @throws Exception
	 */
	public int deleteProviderById(String delId); 
	
	
	/**
	 * 通过proId获取Provider
	 *
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public Provider getProviderById(String id); 
	
	/**
	 * 修改用户信息
	 *
	 * @param user
	 * @return
	 * @throws Exception
	 */
	public int modify(Provider provider);
	
	
}
